package sv.gob.mh.dgii.model;

// Generated Dec 12, 2007 1:25:05 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * CgProduccion generated by hbm2java
 */
@Entity
@Table(name = "CG_PRODUCCION", schema = "UPET")
public class CgProduccion implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7907242079805989678L;
	private Long cproduccion;
	private CgTecnico cgTecnico;
	private CgPrograma cgPrograma;
	private CgCiclo cgCiclo;
	private CgParamProduc cgParamProduc;
	private CgCaso cgCaso;
	private CgEtapa cgEtapa;
	private String mtipoProd;
	private Date fproduccion;
	private BigDecimal vproduccion;
	private Integer bstatus;
	private String cusuario;
	private Date fhingreso;
	private Date fhmodificacion;
	private String cunidad;
	private String cobligacion;
	private Integer bingresoExtra;
	private BigDecimal vinteres;
	private BigDecimal vmultas;

	public CgProduccion() {
	}

	public CgProduccion(Long cproduccion, CgTecnico cgTecnico,
			CgPrograma cgPrograma, CgCiclo cgCiclo,
			CgParamProduc cgParamProduc, CgCaso cgCaso, CgEtapa cgEtapa,
			String mtipoProd, Date fproduccion, BigDecimal vproduccion,
			Integer bstatus, String cusuario, Date fhingreso,
			Date fhmodificacion, String cunidad, Integer bingresoExtra) {
		this.cproduccion = cproduccion;
		this.cgTecnico = cgTecnico;
		this.cgPrograma = cgPrograma;
		this.cgCiclo = cgCiclo;
		this.cgParamProduc = cgParamProduc;
		this.cgCaso = cgCaso;
		this.cgEtapa = cgEtapa;
		this.mtipoProd = mtipoProd;
		this.fproduccion = fproduccion;
		this.vproduccion = vproduccion;
		this.bstatus = bstatus;
		this.cusuario = cusuario;
		this.fhingreso = fhingreso;
		this.fhmodificacion = fhmodificacion;
		this.cunidad = cunidad;
		this.bingresoExtra = bingresoExtra;
	}

	public CgProduccion(Long cproduccion, CgTecnico cgTecnico,
			CgPrograma cgPrograma, CgCiclo cgCiclo,
			CgParamProduc cgParamProduc, CgCaso cgCaso, CgEtapa cgEtapa,
			String mtipoProd, Date fproduccion, BigDecimal vproduccion,
			Integer bstatus, String cusuario, Date fhingreso,
			Date fhmodificacion, String cunidad, String cobligacion,
			Integer bingresoExtra, BigDecimal vinteres, BigDecimal vmultas) {
		this.cproduccion = cproduccion;
		this.cgTecnico = cgTecnico;
		this.cgPrograma = cgPrograma;
		this.cgCiclo = cgCiclo;
		this.cgParamProduc = cgParamProduc;
		this.cgCaso = cgCaso;
		this.cgEtapa = cgEtapa;
		this.mtipoProd = mtipoProd;
		this.fproduccion = fproduccion;
		this.vproduccion = vproduccion;
		this.bstatus = bstatus;
		this.cusuario = cusuario;
		this.fhingreso = fhingreso;
		this.fhmodificacion = fhmodificacion;
		this.cunidad = cunidad;
		this.cobligacion = cobligacion;
		this.bingresoExtra = bingresoExtra;
		this.vinteres = vinteres;
		this.vmultas = vmultas;
	}

	@Id
	@Column(name = "C_PRODUCCION", unique = true, nullable = false, precision = 10, scale = 0)
	public Long getCproduccion() {
		return this.cproduccion;
	}

	public void setCproduccion(Long cproduccion) {
		this.cproduccion = cproduccion;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "NIT", nullable = false)
	public CgTecnico getCgTecnico() {
		return this.cgTecnico;
	}

	public void setCgTecnico(CgTecnico cgTecnico) {
		this.cgTecnico = cgTecnico;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "C_PROGRAMA", nullable = false)
	public CgPrograma getCgPrograma() {
		return this.cgPrograma;
	}

	public void setCgPrograma(CgPrograma cgPrograma) {
		this.cgPrograma = cgPrograma;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "C_CICLO", nullable = false)
	public CgCiclo getCgCiclo() {
		return this.cgCiclo;
	}

	public void setCgCiclo(CgCiclo cgCiclo) {
		this.cgCiclo = cgCiclo;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "C_PARAMETRO", nullable = false)
	public CgParamProduc getCgParamProduc() {
		return this.cgParamProduc;
	}

	public void setCgParamProduc(CgParamProduc cgParamProduc) {
		this.cgParamProduc = cgParamProduc;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "N_CASO", nullable = false)
	public CgCaso getCgCaso() {
		return this.cgCaso;
	}

	public void setCgCaso(CgCaso cgCaso) {
		this.cgCaso = cgCaso;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "C_ETAPA", nullable = false)
	public CgEtapa getCgEtapa() {
		return this.cgEtapa;
	}

	public void setCgEtapa(CgEtapa cgEtapa) {
		this.cgEtapa = cgEtapa;
	}

	@Column(name = "M_TIPO_PROD", nullable = false, length = 1)
	public String getMtipoProd() {
		return this.mtipoProd;
	}

	public void setMtipoProd(String mtipoProd) {
		this.mtipoProd = mtipoProd;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "F_PRODUCCION", nullable = false, length = 7)
	public Date getFproduccion() {
		return this.fproduccion;
	}

	public void setFproduccion(Date fproduccion) {
		this.fproduccion = fproduccion;
	}

	@Column(name = "V_PRODUCCION", nullable = false, precision = 13)
	public BigDecimal getVproduccion() {
		return this.vproduccion;
	}

	public void setVproduccion(BigDecimal vproduccion) {
		this.vproduccion = vproduccion;
	}

	@Column(name = "B_STATUS", nullable = false, precision = 1, scale = 0)
	public Integer getBstatus() {
		return this.bstatus;
	}

	public void setBstatus(Integer bstatus) {
		this.bstatus = bstatus;
	}

	@Column(name = "C_USUARIO", nullable = false, length = 30)
	public String getCusuario() {
		return this.cusuario;
	}

	public void setCusuario(String cusuario) {
		this.cusuario = cusuario;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_INGRESO", nullable = false, length = 7)
	public Date getFhingreso() {
		return this.fhingreso;
	}

	public void setFhingreso(Date fhingreso) {
		this.fhingreso = fhingreso;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FH_MODIFICACION", nullable = false, length = 7)
	public Date getFhmodificacion() {
		return this.fhmodificacion;
	}

	public void setFhmodificacion(Date fhmodificacion) {
		this.fhmodificacion = fhmodificacion;
	}

	@Column(name = "C_UNIDAD", nullable = false, length = 5)
	public String getCunidad() {
		return this.cunidad;
	}

	public void setCunidad(String cunidad) {
		this.cunidad = cunidad;
	}

	@Column(name = "C_OBLIGACION", length = 2)
	public String getCobligacion() {
		return this.cobligacion;
	}

	public void setCobligacion(String cobligacion) {
		this.cobligacion = cobligacion;
	}

	@Column(name = "B_INGRESO_EXTRA", nullable = false, precision = 1, scale = 0)
	public Integer getBingresoExtra() {
		return this.bingresoExtra;
	}

	public void setBingresoExtra(Integer bingresoExtra) {
		this.bingresoExtra = bingresoExtra;
	}

	@Column(name = "V_INTERES", precision = 13)
	public BigDecimal getVinteres() {
		return this.vinteres;
	}

	public void setVinteres(BigDecimal vinteres) {
		this.vinteres = vinteres;
	}

	@Column(name = "V_MULTAS", precision = 13)
	public BigDecimal getVmultas() {
		return this.vmultas;
	}

	public void setVmultas(BigDecimal vmultas) {
		this.vmultas = vmultas;
	}

}
